testgtk: Fix the test scrolling test
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Jan 2018 15:40:09 +0000 (10:40 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 2 Jan 2018 23:14:13 +0000 (18:14 -0500)
We need to expand here, otherwise things look wrong.

tests/testgtk.c

index d709e213320ad0f70fddb37dd00df4043496092f..05257bceea009c07e73b8f222c5b98cea4945a93 100644 (file)
@@ -7148,6 +7148,8 @@ create_scroll_test (GtkWidget *widget)
       scroll_test_pos = 0.0;
 
       drawing_area = gtk_drawing_area_new ();
+      gtk_widget_set_hexpand (drawing_area, TRUE);
+      gtk_widget_set_vexpand (drawing_area, TRUE);
       gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (drawing_area), 200);
       gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (drawing_area), 200);
       gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (drawing_area),